-- GENERATED SPELL FOR [Sporeggar Spawn] --


function spell0_18358(pUnit, Event) --@Sporeskin,Self--
pUnit:FullCastSpellOnTarget(35230,pUnit)
pUnit:RegisterEvent('Sorts_18358', 611, 1)
end

function Sorts_18358(pUnit, Event)
local choix_sorts_18358 = math.random(0, 0)
if choix_sorts_18358 == 0 then
pUnit:RegisterEvent('spell0_18358', 1, 1)
end
end

function mob18358_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18358', math.random(1500, 3000), 1)
end

function mob18358_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18358_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18358_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18358, 1, 'mob18358_Action')
RegisterUnitEvent(18358, 2, 'mob18358_Leave')
RegisterUnitEvent(18358, 3, 'mob18358_Kill')
RegisterUnitEvent(18358, 4, 'mob18358_Die')
